<!-- RD Navbar minimal-->
<div class="rd-navbar-wrap">
  <nav data-md-device-layout="rd-navbar-fixed" data-lg-device-layout="rd-navbar-static" data-md-stick-up-offset="120px" data-lg-stick-up-offset="120px" class="rd-navbar rd-navbar-minimal rd-navbar-light" data-lg-auto-height="true" data-md-layout="rd-navbar-static" data-lg-layout="rd-navbar-static" data-lg-stick-up="true">
    <div class="rd-navbar-inner">
      <div class="rd-navbar-top-panel">
        {pc:content action="lists" catid="33" num="4" siteid="$siteid" order="listorder ASC" moreinfo="1" return="top"}

        <div>
          <address class="contact-info reveal-sm-inline-block text-left offset-none">
            <div class="p unit unit-spacing-xs unit-horizontal">
              <div class="unit-left"><span class="icon icon-xs icon-circle icon-gray-light mdi mdi-phone text-java"></span></div>
              <div class="unit-body text-gray-darker" style="margin-top:13px;">{$top[33]['content']}</div>
            </div>
          </address>
        </div>
        <!--Navbar Brand-->
        <div class="rd-navbar-brand veil reveal-md-inline-block"><a href="index.html"><img width='316' height='57' class='img-responsive' src='/resources/images/logo-dark.png' alt=''/></a></div>
        <div>
          <address class="contact-info reveal-sm-inline-block text-left">
            <div class="p unit unit-horizontal unit-spacing-xs">
              <div class="unit-left"><span class="icon icon-xs icon-circle icon-gray-light mdi mdi-map-marker text-java"></span></div>
              <div class="unit-body text-gray-darker">{$top[35]['content']}</div>
            </div>
          </address>
        </div>
        {/pc}
      </div>
      <!-- RD Navbar Panel-->
      <div class="rd-navbar-panel">
        <!-- RD Navbar Toggle-->
        <button data-rd-navbar-toggle=".rd-navbar, .rd-navbar-nav-wrap" class="rd-navbar-toggle"><span></span></button>
        <!--Navbar Brand-->
        <div class="rd-navbar-brand veil-md"><a href="index.html"><img width='316' height='57' class='img-responsive' src='/resources/images/logo-dark.png' alt=''/></a></div>
        <button data-rd-navbar-toggle=".rd-navbar, .rd-navbar-top-panel" class="rd-navbar-top-panel-toggle"><span></span></button>
      </div>
      <div class="rd-navbar-menu-wrap">
        <div class="rd-navbar-nav-wrap">
          <div class="rd-navbar-mobile-scroll">
            <!--Navbar Brand Mobile-->
            <div class="rd-navbar-mobile-brand"><a href="index.html"><img width='316' height='57' class='img-responsive' src='/resources/images/logo-dark.png' alt=''/></a></div>
            <div class="form-search-wrap">
              <!-- RD Search Form-->
              <form action="{APP_PATH}index.php" method="GET" class="form-search rd-search">
                <input type="hidden" name="m" value="search"/>
                <input type="hidden" name="c" value="index"/>
                <input type="hidden" name="a" value="init"/>
                <input type="hidden" name="typeid" value="1" id="typeid"/>
                <input type="hidden" name="siteid" value="1" id="siteid"/>
                <div class="form-group">
                  <label for="rd-navbar-form-search-widget" class="form-label form-search-label form-label-sm">搜索</label>
                  <input id="rd-navbar-form-search-widget" type="text" name="q" autocomplete="off" class="form-search-input form-control form-control-gray-lightest input-sm"/>
                </div>
                <button type="submit" class="form-search-submit"><span class="fa fa-search"></span></button>
              </form>
            </div>
            <!-- RD Navbar Nav-->
            {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC" return="nav"}
            <ul class="rd-navbar-nav">
        			<li {if ($catid == null)}class="active"{/if}><a href="{siteurl($siteid)}"><span>首页</span></a></li>
              {loop $nav $r}
        			<li {if ( in_array($catid,explode(',',$r['arrchildid'])) )}class="active"{/if}>
                <a href="{$r['url']}"><span>{$r['catname']}</span></a>
                {if $r['catid'] == 10}
                  <div class="rd-navbar-megamenu">
                    <div class="row">
                      <div class="col-md-4 col-lg-4">
                        <h6><a href="{$CATEGORYS[16]['url']}" class="text-black">{$CATEGORYS[16]['catname']}</a></h6>
                        <hr class="text-subline"/>
                        {pc:content action="lists" catid="16" num="100" siteid="$siteid" order="listorder DESC" return="tag"}
                          {loop $tag $v}
                            {php $tags16 .= $v['keywords'].' '}
                          {/loop}
                          {php $value16 = str_replace(' ','\',\'',trim($tags16))}
                        {/pc}
                        {pc:get sql="SELECT * FROM hy_keyword WHERE keyword IN ('$value16') ORDER BY videonum DESC" num="5" return="keys"}
                        <ul class="list-unstyled offset-lg-top-25">
                          {loop $keys $r}
                          <li><a href="{APP_PATH}index.php?m=content&c=tag&a=lists&tag={urlencode($r['keyword'])}">{$r['keyword']}</a></li>
                          {/loop}
                        </ul>
                        {/pc}
                      </div>
                      <div class="col-md-4 col-lg-4">
                        <h6><a href="{$CATEGORYS[17]['url']}" class="text-black">{$CATEGORYS[17]['catname']}</a></h6>
                        <hr class="text-subline"/>
                        {pc:content action="lists" catid="17" num="100" siteid="$siteid" order="listorder DESC" return="tag"}
                          {loop $tag $v}

                            {php $tags17 .= $v['keywords'].' '}
                          {/loop}
                          {php $value17 = str_replace(' ','\',\'',trim($tags17))}
                        {/pc}
                        {pc:get sql="SELECT * FROM hy_keyword WHERE keyword IN ('$value17') ORDER BY videonum DESC" num="5" return="keys"}
                        <ul class="list-unstyled offset-lg-top-25">
                          {loop $keys $r}
                          <li><a href="{APP_PATH}index.php?m=content&c=tag&a=lists&tag={urlencode($r['keyword'])}">{$r['keyword']}</a></li>
                          {/loop}
                        </ul>
                        {/pc}
                      </div>
                      <div class="col-md-4 col-lg-4">
                        <h6>其他内容</h6>
                        <hr class="text-subline"/>
                        <ul class="list-unstyled offset-lg-top-25">
                          <li><a href="{$CATEGORYS[31]['url']}">{$CATEGORYS[31]['catname']}</a></li>
                          <li><a href="{$CATEGORYS[32]['url']}">{$CATEGORYS[32]['catname']}</a></li>
                        </ul>
                      </div>
                    </div>
                  </div>
                {elseif $r['child'] == 1 && $r['catid'] != 1}
                  <ul class="rd-navbar-dropdown">
                    {loop subcat($r['catid']) $r2}
                    <li><a href="{$r2['url']}"><span class="text-middle">{$r2['catname']}</span></a>
                    </li>
                    {/loop}
                  </ul>
                {/if}
              </li>
        			{/loop}
            </ul>
            {/pc}
          </div>
        </div>
        <!--RD Navbar Search-->
        <div class="rd-navbar-search"><a data-rd-navbar-toggle=".rd-navbar-menu-wrap,.rd-navbar-search" href="#" class="rd-navbar-search-toggle mdi"><span></span></a>
          <form action="{APP_PATH}index.php" method="GET" class="rd-navbar-search-form search-form-icon-right rd-search">
            <input type="hidden" name="m" value="search"/>
            <input type="hidden" name="c" value="index"/>
            <input type="hidden" name="a" value="init"/>
            <input type="hidden" name="typeid" value="1" id="typeid"/>
            <input type="hidden" name="siteid" value="1" id="siteid"/>
            <div class="form-group">
              <label for="rd-navbar-search-form-input" class="form-label">输入关键字并按回车...</label>
              <input id="rd-navbar-search-form-input" type="text" name="q" autocomplete="off" class="rd-navbar-search-form-input form-control form-control-gray-lightest search-q"/>
            </div>
            <div id="rd-search-results-live" class="rd-search-results-live"></div>
          </form>
        </div>
      </div>
    </div>
  </nav>
</div>
